package com.xxbb.chapter_3.dome2_takeMoney;

public class Common {
    public Common(){

    }
    @Override
    public String toString() {
        return "Common{" +
                "maxOverdraft=" + maxOverdraft +
                ", name='" + name + '\'' +
                ", balance=" + balance +
                '}';
    }

    public Common(double maxOverdraft, String name, double balance) {
        this.maxOverdraft = maxOverdraft;
        this.name = name;
        this.balance = balance;
    }

    private   double maxOverdraft=5000;
    private String name;
    private double balance;

    public double getMaxOverdraft() {
        return maxOverdraft;
    }

    public void setMaxOverdraft(double maxOverdraft) {
        this.maxOverdraft = maxOverdraft;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
}
